<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>招聘会列表 - 职场社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --secondary: #0f766e;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --border-gray: #cbd5e1;
            --danger: #ef4444;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .main-container {
            padding: 2rem 0;
        }
        
        .page-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }
        
        /* 筛选区域样式 */
        .filters-container {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-chip {
            background-color: var(--light-gray);
            border: 1px solid var(--border-gray);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-chip:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .filter-chip .remove-icon {
            display: none;
        }
        
        .filter-chip.active .remove-icon {
            display: inline-block;
        }
        
        .search-bar {
            position: relative;
            margin-bottom: 1.5rem;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--border-gray);
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .date-range {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .date-input {
            flex: 1;
            padding: 0.5rem;
            border: 1px solid var(--border-gray);
            border-radius: 6px;
        }
        
        .form-select {
            border-color: var(--border-gray);
            padding: 0.5rem;
        }
        
        .filter-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
        }
        
        .btn-reset {
            background-color: transparent;
            border: 1px solid var(--border-gray);
            color: var(--gray);
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-reset:hover {
            border-color: var(--gray);
            color: var(--dark);
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-apply:hover {
            background-color: #1d4ed8;
        }
        
        /* 结果区域样式 */
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .view-options {
            display: flex;
            gap: 0.5rem;
        }
        
        .view-btn {
            background-color: white;
            border: 1px solid var(--border-gray);
            width: 36px;
            height: 36px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .view-btn:hover:not(.active) {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        /* 招聘会列表样式 */
        .job-fair-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .job-fair-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.2s;
        }
        
        .job-fair-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        }
        
        .fair-image-container {
            height: 160px;
            width: 100%;
        }
        
        .fair-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image {
            width: 100%;
            height: 100%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
        }
        
        .fair-content {
            padding: 1.25rem;
        }
        
        .fair-title {
            font-size: 1.15rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .fair-title:hover {
            color: var(--primary);
        }
        
        .fair-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .fair-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .fair-description {
            color: var(--dark);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .fair-host {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }
        
        .host-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .host-name {
            font-weight: 500;
        }
        
        .fair-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .fair-tag {
            background-color: var(--light-gray);
            color: var(--gray);
            padding: 0.2rem 0.6rem;
            border-radius: 30px;
            font-size: 0.8rem;
        }
        
        .fair-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 0.75rem;
            border-top: 1px solid var(--light-gray);
        }
        
        .stats {
            display: flex;
            gap: 1rem;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: all 0.2s;
        }
        
        .action-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        /* 列表视图样式 */
        .list-view {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .list-view .job-fair-card {
            display: flex;
            flex-wrap: wrap;
        }
        
        .list-view .fair-image-container {
            flex: 0 0 180px;
            height: 140px;
        }
        
        .list-view .fair-content {
            flex: 1;
            min-width: 250px;
        }
        
        /* 分页样式 */
        .pagination-container {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-gray);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover:not(.active):not(.disabled) {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* 已选筛选条件 */
        .selected-filters {
            background-color: white;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .selected-filters-title {
            font-size: 0.9rem;
            color: var(--gray);
            margin-bottom: 0.75rem;
        }
        
        .selected-filter-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .selected-filter-chip {
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .remove-filter {
            cursor: pointer;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(37, 99, 235, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .filter-options {
                gap: 0.5rem;
            }
            
            .filter-chip {
                padding: 0.3rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .date-range {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .job-fair-list {
                grid-template-columns: 1fr;
            }
            
            .list-view .fair-image-container {
                flex: 0 0 100%;
                height: 160px;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-briefcase"></i>
                职场社交
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto gap-4">
                    <li class="nav-item"><a href="#" class="nav-link">首页</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">职位</a></li>
                    <li class="nav-item"><a href="#" class="nav-link active">招聘会</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">公司</a></li>
                    <li class="nav-item"><a href="#" class="nav-link">社区</a></li>
                    <li class="nav-item">
                        <a href="#" class="nav-link" title="个人中心">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 32px; height: 32px;">
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <div class="container main-container">
        <h1 class="page-title">招聘会列表</h1>
        
        <div class="row">
            <!-- 左侧筛选栏 -->
            <div class="col-lg-3 mb-4 mb-lg-0">
                <div class="filters-container sticky-top" style="top: 20px;">
                    <!-- 搜索框 -->
                    <div class="search-bar">
                        <i class="fas fa-search search-icon"></i>
                        <input type="text" class="search-input" placeholder="搜索招聘会名称、企业或地点...">
                    </div>
                    
                    <!-- 城市筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-map-marker-alt"></i>
                            城市
                        </h3>
                        <div class="filter-options">
                            <div class="filter-chip active" onclick="toggleFilter(this)">
                                全国
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                北京
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                上海
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                广州
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                深圳
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                杭州
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                成都
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                武汉
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                更多 <i class="fas fa-chevron-down"></i>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 日期筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="far fa-calendar-alt"></i>
                            举办日期
                        </h3>
                        <div class="filter-options">
                            <div class="filter-chip active" onclick="toggleFilter(this)">
                                全部日期
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                今天
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                明天
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                本周
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                下周
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                本月
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                        </div>
                        
                        <div style="margin-top: 1rem;">
                            <h5 style="font-size: 0.9rem; margin-bottom: 0.75rem;">自定义日期范围</h5>
                            <div class="date-range">
                                <input type="date" class="date-input" placeholder="开始日期">
                                <input type="date" class="date-input" placeholder="结束日期">
                            </div>
                        </div>
                    </div>
                    
                    <!-- 类型筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-tags"></i>
                            招聘会类型
                        </h3>
                        <div class="filter-options">
                            <div class="filter-chip active" onclick="toggleFilter(this)">
                                全部类型
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                校园招聘
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                社会招聘
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                行业专场
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                线上招聘会
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                综合招聘会
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                高端人才会
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 行业筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-industry"></i>
                            涉及行业
                        </h3>
                        <div class="filter-options">
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                IT/互联网
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                金融
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                教育
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                医疗健康
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                制造业
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                服务业
                                <i class="fas fa-times remove-icon"></i>
                            </div>
                            <div class="filter-chip" onclick="toggleFilter(this)">
                                更多 <i class="fas fa-chevron-down"></i>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 筛选操作按钮 -->
                    <div class="filter-actions">
                        <button class="btn-reset" onclick="resetFilters()">
                            <i class="fas fa-redo-alt"></i>
                            重置筛选
                        </button>
                        <button class="btn-apply" onclick="applyFilters()">
                            <i class="fas fa-filter"></i>
                            应用筛选
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 右侧列表区域 -->
            <div class="col-lg-9">
                <!-- 已选筛选条件 -->
                <div class="selected-filters">
                    <div class="selected-filters-title">已选条件：</div>
                    <div class="selected-filter-chips">
                        <div class="selected-filter-chip">
                            城市：全国
                            <span class="remove-filter" onclick="removeSelectedFilter(this)">×</span>
                        </div>
                        <div class="selected-filter-chip">
                            类型：全部类型
                            <span class="remove-filter" onclick="removeSelectedFilter(this)">×</span>
                        </div>
                        <div class="selected-filter-chip">
                            日期：全部日期
                            <span class="remove-filter" onclick="removeSelectedFilter(this)">×</span>
                        </div>
                    </div>
                </div>
                
                <!-- 结果头部 -->
                <div class="results-header">
                    <div class="results-count">找到 <strong>128</strong> 场招聘会</div>
                    
                    <div class="d-flex align-items-center gap-3">
                        <div>
                            <select class="form-select">
                                <option value="recommend">推荐排序</option>
                                <option value="date">按日期排序</option>
                                <option value="hot">热门程度</option>
                                <option value="latest">最新发布</option>
                            </select>
                        </div>
                        
                        <div class="view-options">
                            <div class="view-btn active" title="网格视图" onclick="switchView('grid')">
                                <i class="fas fa-th"></i>
                            </div>
                            <div class="view-btn" title="列表视图" onclick="switchView('list')">
                                <i class="fas fa-list"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 招聘会列表 -->
                <div class="job-fair-list" id="fairList">
                    <!-- 招聘会1 -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <img src="https://picsum.photos/400/300?random=10" alt="2023年秋季大型综合招聘会" class="fair-image">
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">2023年秋季大型综合招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-10-28</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>北京</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>300+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">综合类</span>
                                <span class="fair-tag">社会招聘</span>
                            </div>
                            
                            <p class="fair-description">
                                2023年秋季大型综合招聘会将汇集300多家知名企业，提供超过10000个就业岗位，涵盖多个行业。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=20" alt="张招聘" class="host-avatar">
                                <span class="host-name">张招聘 · 北京人才市场</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>12.5k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>342</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>2.8k</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn" onclick="toggleLike(this)" title="点赞">
                                        <i class="far fa-heart"></i>
                                    </button>
                                    <button class="action-btn" onclick="toggleSave(this)" title="收藏">
                                        <i class="far fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 招聘会2 -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <img src="https://picsum.photos/400/300?random=11" alt="2023年高科技产业人才专场招聘会" class="fair-image">
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">2023年高科技产业人才专场招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-11-12</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>上海</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>150+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">IT/互联网</span>
                                <span class="fair-tag">行业专场</span>
                            </div>
                            
                            <p class="fair-description">
                                本次高科技产业人才专场招聘会聚焦人工智能、大数据、云计算等前沿领域，汇聚多家知名科技企业。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=21" alt="李科技" class="host-avatar">
                                <span class="host-name">李科技 · 上海高科技人才交流中心</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>8.9k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>256</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>1.9k</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn liked" onclick="toggleLike(this)" title="点赞">
                                        <i class="fas fa-heart"></i>
                                    </button>
                                    <button class="action-btn" onclick="toggleSave(this)" title="收藏">
                                        <i class="far fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 招聘会3 (无图) -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <div class="no-image">
                                <i class="fas fa-laptop-house fa-2x"></i>
                            </div>
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">2023年冬季全国网络招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-12-01 至 15</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-globe-americas"></i>
                                    <span>线上举办</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>500+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">线上招聘会</span>
                                <span class="fair-tag">全国</span>
                            </div>
                            
                            <p class="fair-description">
                                2023年冬季全国网络招聘会将持续15天，采用线上直播+云招聘的形式，求职者可在线与企业HR实时沟通。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=22" alt="王线上" class="host-avatar">
                                <span class="host-name">王线上 · 全国人才流动中心</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>25.6k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>876</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>12.3k</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn" onclick="toggleLike(this)" title="点赞">
                                        <i class="far fa-heart"></i>
                                    </button>
                                    <button class="action-btn saved" onclick="toggleSave(this)" title="收藏">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 招聘会4 -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <img src="https://picsum.photos/400/300?random=14" alt="北京大学2024届毕业生招聘会" class="fair-image">
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">北京大学2024届毕业生招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-11-05</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>北京</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>200+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">校园招聘</span>
                                <span class="fair-tag">应届生</span>
                            </div>
                            
                            <p class="fair-description">
                                北京大学2024届毕业生招聘会将邀请200多家用人单位，为应届毕业生提供就业和实习机会。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=23" alt="刘老师" class="host-avatar">
                                <span class="host-name">刘老师 · 北京大学就业指导中心</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>5.6k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>124</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>1.2k</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn" onclick="toggleLike(this)" title="点赞">
                                        <i class="far fa-heart"></i>
                                    </button>
                                    <button class="action-btn" onclick="toggleSave(this)" title="收藏">
                                        <i class="far fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 招聘会5 -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <img src="https://picsum.photos/400/300?random=15" alt="2023金融行业人才专场招聘会" class="fair-image">
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">2023金融行业人才专场招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-11-18</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>上海</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>80+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">金融</span>
                                <span class="fair-tag">行业专场</span>
                            </div>
                            
                            <p class="fair-description">
                                汇聚各大银行、证券、保险等金融机构，提供投行、风控、理财等各类金融岗位。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=24" alt="金经理" class="host-avatar">
                                <span class="host-name">金经理 · 上海金融人才协会</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>4.2k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>98</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>856</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn" onclick="toggleLike(this)" title="点赞">
                                        <i class="far fa-heart"></i>
                                    </button>
                                    <button class="action-btn" onclick="toggleSave(this)" title="收藏">
                                        <i class="far fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 招聘会6 -->
                    <div class="job-fair-card">
                        <div class="fair-image-container">
                            <img src="https://picsum.photos/400/300?random=16" alt="2023年珠三角地区制造业招聘会" class="fair-image">
                        </div>
                        <div class="fair-content">
                            <a href="#" class="fair-title">2023年珠三角地区制造业招聘会</a>
                            
                            <div class="fair-meta">
                                <div class="fair-meta-item">
                                    <i class="far fa-calendar-alt"></i>
                                    <span>2023-11-25</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>深圳</span>
                                </div>
                                <div class="fair-meta-item">
                                    <i class="fas fa-building"></i>
                                    <span>220+ 企业</span>
                                </div>
                            </div>
                            
                            <div class="fair-tags">
                                <span class="fair-tag">制造业</span>
                                <span class="fair-tag">社会招聘</span>
                            </div>
                            
                            <p class="fair-description">
                                聚焦珠三角地区制造业升级需求，为汽车制造、电子设备、智能装备等企业提供专业人才对接。
                            </p>
                            
                            <div class="fair-host">
                                <img src="https://picsum.photos/100/100?random=25" alt="赵厂长" class="host-avatar">
                                <span class="host-name">赵厂长 · 珠三角制造业协会</span>
                            </div>
                            
                            <div class="fair-stats">
                                <div class="stats">
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>3.7k</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="far fa-comment"></i>
                                        <span>76</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-user-check"></i>
                                        <span>642</span>
                                    </div>
                                </div>
                                
                                <div class="actions">
                                    <button class="action-btn" onclick="toggleLike(this)" title="点赞">
                                        <i class="far fa-heart"></i>
                                    </button>
                                    <button class="action-btn saved" onclick="toggleSave(this)" title="收藏">
                                        <i class="fas fa-bookmark"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 分页 -->
                <div class="pagination-container">
                    <div class="pagination">
                        <div class="page-btn disabled">
                            <i class="fas fa-chevron-left"></i>
                        </div>
                        <div class="page-btn active">1</div>
                        <div class="page-btn">2</div>
                        <div class="page-btn">3</div>
                        <div class="page-btn">4</div>
                        <div class="page-btn">5</div>
                        <div class="page-btn">
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 切换筛选条件
        function toggleFilter(element) {
            // 如果是"全部"选项，需要取消同组其他选项
            if (element.textContent.includes('全部') || element.textContent.includes('全国')) {
                const parent = element.closest('.filter-options');
                parent.querySelectorAll('.filter-chip').forEach(chip => {
                    chip.classList.remove('active');
                });
            } else {
                // 如果不是"全部"选项，需要取消同组的"全部"选项
                const parent = element.closest('.filter-options');
                parent.querySelectorAll('.filter-chip').forEach(chip => {
                    if (chip.textContent.includes('全部') || chip.textContent.includes('全国')) {
                        chip.classList.remove('active');
                    }
                });
            }
            
            // 切换当前选项状态
            element.classList.toggle('active');
        }
        
        // 重置筛选条件
        function resetFilters() {
            document.querySelectorAll('.filter-chip').forEach(chip => {
                chip.classList.remove('active');
            });
            
            // 选中默认选项
            document.querySelectorAll('.filter-section').forEach(section => {
                const firstChip = section.querySelector('.filter-chip');
                if (firstChip && (firstChip.textContent.includes('全部') || firstChip.textContent.includes('全国'))) {
                    firstChip.classList.add('active');
                }
            });
            
            // 清空日期输入
            document.querySelectorAll('.date-input').forEach(input => {
                input.value = '';
            });
            
            // 清空搜索框
            document.querySelector('.search-input').value = '';
            
            showToast('已重置所有筛选条件');
        }
        
        // 应用筛选条件
        function applyFilters() {
            // 这里只是模拟筛选，实际应用中会根据选中的条件发送请求
            showToast('筛选条件已应用');
        }
        
        // 移除已选筛选条件
        function removeSelectedFilter(element) {
            const chip = element.closest('.selected-filter-chip');
            chip.remove();
            
            // 如果是最后一个筛选条件，隐藏整个区域
            if (document.querySelectorAll('.selected-filter-chip').length === 0) {
                document.querySelector('.selected-filters').style.display = 'none';
            }
            
            showToast('已移除筛选条件');
        }
        
        // 切换视图（网格/列表）
        function switchView(viewType) {
            const listElement = document.getElementById('fairList');
            const viewButtons = document.querySelectorAll('.view-btn');
            
            // 更新按钮状态
            viewButtons.forEach(btn => btn.classList.remove('active'));
            document.querySelector(`.view-btn[title="${viewType === 'grid' ? '网格视图' : '列表视图'}"]`).classList.add('active');
            
            // 更新列表样式
            if (viewType === 'grid') {
                listElement.classList.remove('list-view');
                listElement.classList.add('job-fair-list');
            } else {
                listElement.classList.remove('job-fair-list');
                listElement.classList.add('list-view');
            }
        }
        
        // 点赞功能
        function toggleLike(button) {
            const icon = button.querySelector('i');
            
            if (icon.classList.contains('far')) {
                // 未点赞 -> 点赞
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('liked');
                showToast('点赞成功');
            } else {
                // 已点赞 -> 取消点赞
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('liked');
                showToast('已取消点赞');
            }
        }
        
        // 收藏功能
        function toggleSave(button) {
            const icon = button.querySelector('i');
            
            if (icon.classList.contains('far')) {
                // 未收藏 -> 收藏
                icon.classList.remove('far');
                icon.classList.add('fas');
                button.classList.add('saved');
                showToast('收藏成功');
            } else {
                // 已收藏 -> 取消收藏
                icon.classList.remove('fas');
                icon.classList.add('far');
                button.classList.remove('saved');
                showToast('已取消收藏');
            }
        }
        
    </script>
</body>
</html>
    
